<?php
require_once(dirname(__FILE__)."/db.inc");

if (strpos($_SERVER["SERVER_NAME"], "mundiplus.com") === false)
{
	// Desarrollo
	define("BASE_DIR", "/var/chroot/home/content/10/8766010/html/mundiplus/");
	define("SERVER_URL", "mundiplus.kinxos.com");
	define("SECURE_URL", "http://".SERVER_URL."/");
	define("CHECK_PROTOCOL", "0");
	error_reporting(E_ALL);
	ini_set("display_errors", "On");
}
else
{
	// Producción
	define("BASE_DIR", "/home/content/31/8500031/html/");
	define("SERVER_URL", "www.mundiplus.com");
	define("SECURE_URL", "https://".SERVER_URL."/");
	define("CHECK_PROTOCOL", "1");
	error_reporting(0);
	ini_set("display_errors", "Off");
}

define("DEFAULT_SECTION", "home");
define("SITE_NAME", "MUNDIPLUS | Expertos en viajes organizados al Camino de Santiago");
define("PAGE_DESCRIPTION", "Viajes organizados a pie al Camino de Santiago. Nos adaptamos a las necesidades del peregrino y te ayudaremos a hacer de “tu Camino” una experiencia inolvidable. El Camino francés y los últimos 100 kms es nuestra especialidad con salidas desde Sarria, O Cebreiro y Madrid. Puedes diseñar la ruta a Santiago de Compostela a gusto del peregrino.");
define("KEYWORDS", "camino de santiago, camino frances, ultimos 100 kms, viajes organizados, santiago de compostela,  peregrinos,  jacobeo,  xacobeo,  rutas de peregrinacion,  la compostela,  credencial del peregrino, fotos camino de santiago, catedral santiago de compostela, blog del peregrino, noticias del camino, experiencias del camino, senderismo, trekking, rutas a pie, aventuras");
define("SITE_NAME_PART1", "MUNDI");
define("SITE_NAME_PART2", "PLUS");
define("SOCIAL_ICON_SIZE", "24");
define("MAX_COMPANIONS", "10");
define("PHOTOS_PER_PAGE", "15");
define("MAX_COMMENTS_ON_BLOG", "100");

/**
 * Rutas
 */
define("LOGS_DIR", BASE_DIR."logs/");
define("CONF_DIR", BASE_DIR."conf/");
define("IMAGES_DIR", BASE_DIR."images/");
define("GALLERY_DIR", IMAGES_DIR."gallery/");
define("UPLOADS_DIR", BASE_DIR."uploads/");
define("CSS_DIR", BASE_DIR."css/");
define("JS_DIR", BASE_DIR."js/");
define("INCLUDES_DIR", BASE_DIR."includes/");
define("TEMPLATES_DIR", BASE_DIR."templates/");
define("LIBRARIES_DIR", BASE_DIR."libraries/");
define("SMARTY_DIR", LIBRARIES_DIR."Smarty-3.0.5/libs/");
define("GEONAMES_DIR", LIBRARIES_DIR."GeoNames-1.0.1/");
define("LANG_DIR", BASE_DIR."lang/");
define("ADMIN_DIR", BASE_DIR."admin/");
define("ADMIN_IMAGES_DIR", ADMIN_DIR."images/");
define("ADMIN_CSS_DIR", ADMIN_DIR."css/");
define("ADMIN_JS_DIR", ADMIN_DIR."js/");
define("ADMIN_TEMPLATES_DIR", ADMIN_DIR."templates/");
define("ADMIN_LIBRARIES_DIR", ADMIN_DIR."libraries/");

/**
 * URLs
 */
define("BASE_URL", "http://".SERVER_URL."/");
define("IMAGES_URL", "images/");
define("GALLERY_URL", IMAGES_URL."gallery/");
define("UPLOADS_URL", BASE_URL."uploads/");
define("CSS_URL", "css/");
define("JS_URL", "js/");
define("INCLUDES_URL", "includes/");
define("ADMIN_URL", SECURE_URL."admin/");

/**
 * Idiomas
 */
define("AVAILABLE_LANGUAGES", serialize(array("fr","de","it","en","es")));
define("DEFAULT_LANGUAGE", "es");

/**
 * Datos de contacto
 */
define("CONTACT_EMAIL", "info@mundiplus.com");
define("CONTACT_PHONE", "(+34) 91 153 73 87 / (+34) 617 661 009");

/**
 * Datos de las redes sociales
 */
$GLOBALS["SHARE_LINKS"] = array(
	array(
		"name" => "Facebook",
		"icon" => "facebook-share.png",
		"url" => "http://www.facebook.com/share.php?u="
	),
	array(
		"name" => "Twitter",
		"icon" => "twitter-share.png",
		"url" => "http://twitter.com/home?status=Currently%20reading%20"
	),
	array(
		"name" => "Digg",
		"icon" => "digg-share.png",
		"url" => "http://digg.com/submit?phase=2&url="
	),
	array(
		"name" => "Delicious",
		"icon" => "delicious-share.png",
		"url" => "http://delicious.com/post?url="
	),
	array(
		"name" => "StumbleUpon",
		"icon" => "stumbleupon-share.png",
		"url" => "http://www.stumbleupon.com/submit?title=&url="
	),
	array(
		"name" => "BlinkList",
		"icon" => "blinklist-share.png",
		"url" => "http://blinklist.com/index.php?Action=Blink/addblink.php&Title=&Url="
	),
	array(
		"name" => "Friendfeed",
		"icon" => "friendfeed-share.png",
		"url" => "http://www.friendfeed.com/share?title=&link="
	),
	array(
		"name" => "Meneame",
		"icon" => "meneame-share.png",
		"url" => "http://meneame.net/submit.php?url="
	),
	array(
		"name" => "MySpace",
		"icon" => "myspace-share.png",
		"url" => "http://www.myspace.com/Modules/PostTo/Pages/?u="
	),
	array(
		"name" => "Technorati",
		"icon" => "technorati-share.png",
		"url" => "http://technorati.com/faves?add="
	),
	array(
		"name" => "Wikio",
		"icon" => "wikio-share.png",
		"url" => "http://www.wikio.fr/vote?url="
	),
);

/**
 * Urls de las redes sociales
 */
define("FACEBOOK_SHARE_URL", "http://www.facebook.com/share.php?u=");
define("TWITTER_SHARE_URL", "http://twitter.com/home?status=Currently%20reading%20");
define("DIGG_SHARE_URL", "http://digg.com/submit?phase=2&url=");
define("DELICIOUS_SHARE_URL", "http://delicious.com/post?url=");
define("STUMBLEUPON_SHARE_URL", "http://www.stumbleupon.com/submit?title=&url=");
define("BLINKLIST_SHARE_URL", "http://blinklist.com/index.php?Action=Blink/addblink.php&Title=&Url=");
define("FRIENDFEED_SHARE_URL", "http://www.friendfeed.com/share?title=&link=");
define("MENEAME_SHARE_URL", "http://meneame.net/submit.php?url=");
define("MYSPACE_SHARE_URL", "http://www.myspace.com/Modules/PostTo/Pages/?u=");
define("TECHNORATI_SHARE_URL", "http://technorati.com/faves?add=");
define("WIKIO_SHARE_URL", "http://www.wikio.fr/vote?url=");

/**
 * Secciones que deben ir bajo ssl
 */
define("SECURE_SECTIONS", "reservations,process-reservations-form,admin");
